package com.bzkj.basicinfo.mapper.inspect;

import com.bzkj.basicinfo.domain.inspect.WmsInspectDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface WmsInspectDetailMapper {
    /**
     * 根据任务ID查询明细列表
     */
    List<WmsInspectDetailEntity> selectDetailsByTaskId(@Param("inspectTaskId") Long inspectTaskId);

    /**
     * 根据ID查询单个明细
     */
    WmsInspectDetailEntity selectDetailById(@Param("id") Long id);

    /**
     * 插入验收明细
     */
    int insertInspectDetail(WmsInspectDetailEntity entity);

    /**
     * 更新验收明细
     */
    int updateInspectDetail(WmsInspectDetailEntity entity);

    /**
     * 批量更新验收明细
     */
    int batchUpdateInspectDetails(@Param("list") List<WmsInspectDetailEntity> list);

    /**
     * 根据任务ID删除明细
     */
    int deleteDetailsByTaskId(@Param("inspectTaskId") Long inspectTaskId);

    /**
     * 根据ID删除明细
     */
    int deleteDetailById(@Param("id") Long id);
}
